﻿namespace YamltoMssql
{
    using System;

    [AttributeUsage(AttributeTargets.Class, AllowMultiple = false)]
    public sealed class MappingClassAttribute :Attribute
    {
    }


    [AttributeUsage(AttributeTargets.Property, AllowMultiple = false)]
    public sealed class ColumnAttribute : Attribute
    {
        public string Name { get; set; }
        public bool IsNullable { get; set; }
        public string Type { get; set; }

        public ColumnAttribute(string name, string type, bool isNullable)
        {
            Name = name;
            Type = type;
            IsNullable = isNullable;
        }
    }
}